home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / comm / misc / http_log_2.readme < prev    next >
Encoding:
Text File  |  1995-04-27  |  1.8 KB  |  63 lines

  1. Short: Parse httpd log files
  2.  
  3.      httplog.c
  4.  
  5.      (c) Armin Obersteiner
  6.  
  7.      Parsing ncsa/cern httpd logfile
  8.  
  9.      USAGE: httplog [-s <keyword>] [-l] <logfile>
  10.  
  11.      <logfile>      -  httpd <logfile>
  12.      -l             -  long: country statistics
  13.      -lt            -  long: time statistics
  14.      -s <keyword>   -  search for <keyword>
  15.  
  16.      compiles on:   MaxonC++ (amiga)
  17.                     gcc (amiga)
  18.                     gcc (bsd)
  19.      (it should actually compile on any platform then :)
  20.  
  21.       ->>>  gcc -o httplog httplog.c -lm
  22.  
  23.      it´s made to work on ncsa logfiles:
  24.  
  25.         Site [Weekday Month Day Hours(24):Min:Sec Year] Method URL Protocol
  26.  
  27.      and cern logfiles:
  28.  
  29.         Site - - [Day/Month/Year:Hours(24):Min:Sec +GMT_Hours] "Method URL Protocol" #1 #2
  30.  
  31.  
  32.  
  33.      to include new countries:
  34.  
  35.            -   add lines to structure "struct dummy c"
  36.            -  don´t forget to increase "country_anz"
  37.  
  38.      to adapt time and date for other logfile formats:
  39.  
  40.            -   do the same with "struct dummy d" / "struct dummy t"
  41.            -  don´t forget to increase/decrease "day_anz" :)  / "time_anz"
  42.  
  43.      the second entry in these stuctures (dummy) is the string to search for
  44.      (use spaces or brackets, because it´s more reliable then)
  45.      the third entry is the string for output
  46.  
  47.  
  48.      CU Armin :)
  49.  
  50.         ( Armin.Obersteiner@giga.or.at )
  51.  
  52.  
  53. ============================= Archive contents =============================
  54.  
  55. Original  Packed Ratio    Date     Time    Name
  56. -------- ------- ----- --------- --------  -------------
  57.    14860    6727 54.7% 10-Apr-95 01:01:30  httplog
  58.    11739    3076 73.7% 10-Apr-95 01:00:58  httplog.c
  59.     1337     602 54.9% 10-Apr-95 01:11:36  httplog.doc
  60.     1411     676 52.0% 10-Apr-95 01:10:18  httplog.html
  61. -------- ------- ----- --------- --------
  62.    29347   11081 62.2% 11-Apr-95 23:53:32   4 files
  63.